using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioManager : MonoBehaviour
{
    private AudioSource audioSource;
    private void Start()
    {
        audioSource = GetComponent<AudioSource>();
    }
    private void Update()
    {
        if (DataManager.Instance != null)
        {
            audioSource.volume = DataManager.Instance.musicSetting;
        }
    }
}
